MoECoreHelper

Helper class to access the core APIs for the MoEngage SDK.

Since

12.0.00

Author

Umang Chamaria

Functions

Link copied to clipboard

Add a listener to get a callback on application background for the account configured as default.

Add a listener to get a callback on application background for the given account.

Link copied to clipboard

Add a listener to get a callback on logout complete for the account configured as default

Add a listener to get a callback on logout complete for the given instance.

Link copied to clipboard

Add a listener to get a callback when the SDK is initialised for the given app ID

Link copied to clipboard
fun deleteUser(context: Context, listener: UserDeletionListener)

Delete Current User Data From MoEngage Server for the account configured as default.

fun deleteUser(context: Context, appId: String, listener: UserDeletionListener)

Delete Current User Data From MoEngage Server for the given instance

Link copied to clipboard

Returns the account identifier in the payload if present.

Link copied to clipboard

Returns the account identifier in the payload if present.

Link copied to clipboard

Fetches unique ID generated by the MoEngage SDK.

Link copied to clipboard

Returns the User registration state

Link copied to clipboard
fun logoutUser(@NonNull context: Context)

Notify the SDK that the user has logged out of the application for the account configured as default

fun logoutUser(@NonNull context: Context, @NonNull appId: String)

Notify the SDK that the user has logged out of the application for the given instance.

Link copied to clipboard

Add a listener to get a callback the SDK tries to process an incoming intent.

Link copied to clipboard
fun registerUser(context: Context, data: String, listener: UserRegistrationListener)
fun registerUser(context: Context, appId: String, data: String, listener: UserRegistrationListener)

Registers the User

Link copied to clipboard

Remove application background listener for the account configured as default.

Remove application background listener for the given account.

Link copied to clipboard

Remove logout listener for the account configured as default.

Remove logout listener for the given account.

Link copied to clipboard

Remove the listener set to get a callback when the SDK is initialised for the given app ID

Link copied to clipboard

Setup the MoEngage Sdk to work in Background even if user has not opened the application.

Link copied to clipboard

Immediately sync tracked data with MoEngage Server for the account configured as default.

Immediately sync tracked data with MoEngage Server for the given account.

Link copied to clipboard

Remove listener to get a callback the SDK tries to process an incoming intent.

Link copied to clipboard
fun unregisterUser(context: Context, data: String, listener: UserRegistrationListener)
fun unregisterUser(context: Context, appId: String, data: String, listener: UserRegistrationListener)

UnRegisters the User